package com.kob.backend.service.user;

import com.kob.backend.pojo.DueHistroy;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface DueHistoryService {
    /*
    * 保存历史记录
    * */
    int save(DueHistroy histroy);
    int setCancel(DueHistroy histroy);
    // 设置签到，更改字段issignin为1
    int setSignin(DueHistroy histroy);
    // 预约是否已经签到
    boolean seatHasSignIn(int seatId,String userid, String selectedDateSlot, String selectedTimeSlot);
    // 根据userid查询DueHistroy记录
    List<DueHistroy> findByUserId(@Param("userId") String userId);

    List<DueHistroy> findPastDueHistory();

    // 获取签到、未取消的记录
    List<DueHistroy> findSignInAndNCancelHistory();
}
